<?php

include(dirname(__FILE__).'/../../bootstrap/functional.php');

$browser = new CheckTestFunctional(new sfBrowser(), $t = new lime_test(5));

$browser->
  loadData()->
  info('The user module is secured')->
  get('/users')->
  with('response')->
    begin()->
    isStatusCode(401)->
  end()->
  signin()->
  get('/users')->
  with('request')->begin()->
    isParameter('module', 'user')->
    isParameter('action', 'index')->
  end()->
  info('The actions use the standard sfDoctrineGuardPlugin, they don\'t need to be tested')
  ;
